#!/usr/bin/bash

result=false

rpm -q aide | grep -Piq aide-.* && result=true

if [[ "$result" == "true" ]] ; then
    echo "pass"
else
    echo "fail"
fi